/*
 * @Author: 花香蝶自来 1026583651@qq.com
 * @Date: 2024-08-01 11:15:17
 * @LastEditors: 花香蝶自来 1026583651@qq.com
 * @LastEditTime: 2024-08-02 11:49:15
 * @FilePath: /energy_capacity_app/api/appletManage/advertising.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request";

//  获取⼩程序和⼴告位枚举
export function getEnum(type) {
  return request({
    url: `/appletManage/advertising/enum/${type}`,
    method: "get",
  });
}
// ⼴告位详情列表接⼝
export function slotpage(data) {
  return request({
    url: `/appletManage/advertising/slot/page`,
    method: "post",
    data: data,
  });
}
// 更新⼴告位数据
export function updateslot(data) {
  return request({
    url: `/appletManage/advertising/update/slot`,
    method: "post",
    data: data,
  });
}
// settlement
// 更新佣⾦位数据
export function updatesettlement(data) {
  return request({
    url: `/appletManage/advertising/update/settlement`,
    method: "post",
    data: data,
  });
}
// 获取佣⾦结算分⻚查询
export function settlementpage(data) {
  return request({
    url: `/appletManage/advertising/settlement/page`,
    method: "post",
    data: data,
  });
}
// ⼴告位分⻚查询(查询昨天)
export function slotoneDay(data) {
  return request({
    url: `/appletManage/advertising/slot/oneDay/page`,
    method: "post",
    data: data,
  });
}
